import request from '@/utils/request'

export function saveOrUpdate(data) {
  return request({
    url: '/webDiskDbWorkFileInfo/saveOrUpdate',
    method: 'POST',
    data
  })
}

export function selectPage(data) {
  return request({
    url: '/webDiskDbWorkFileInfo/queryPage',
    method: 'POST',
    data
  })
}

export function deleteById(params) {
  return request({
    url: '/webDiskDbWorkFileInfo/deleteById',
    method: 'POST',
    params
  })
}

/**
 * 获取下载链接
 */
export function getDownloadUrl(params) {
  return request({
    url: '/webDiskDbWorkFileInfo/getDownloadUrl',
    method: 'POST',
    params
  })
}
